package com.rx.school.service.feign;

import com.rx.core.base.RxBaseConstant;
import com.rx.core.base.RxBaseService;
import com.rx.uua.vo.UuaOrgInfo;
import com.rx.uua.vo.UuaUserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @version V1.0
 * @Title: LoginService
 * @Package
 * @Description: 获取机构信息
 * @author: 陈锦韬
 * @date: 2021\6\28 0028
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
@FeignClient(name = "uua",fallbackFactory= HystrixClientFallbackFactory.class/*,path = "/user"*/)
public interface FeignOrgInfoService extends RxBaseService {

    /**
     * 获取机构信息
     * @param data
     * @return
     */
    @PostMapping(value = RxBaseConstant.CONFIG_STANDARD_API + "/single/uua-org-info/standard/detail" ,produces = RxBaseConstant.APPLICATION_JSON_UTF8_VALUE)
    UuaOrgInfo getDetail(UuaOrgInfo data);

    @PostMapping(value = RxBaseConstant.CONFIG_STANDARD_API + "/single/uua-user-info/standard/detail" ,produces = RxBaseConstant.APPLICATION_JSON_UTF8_VALUE)
    UuaUserInfo getUserDetail(UuaUserInfo data);

    @PostMapping(value = RxBaseConstant.CONFIG_STANDARD_API + "/single/uua-user-info/standard/search-list" ,produces = RxBaseConstant.APPLICATION_JSON_UTF8_VALUE)
    List<UuaUserInfo> getUserList(List<UuaUserInfo> dataList);
}
